import Analysis from '../routes/Dashboard/Analysis';
import Workplace from '../routes/Dashboard/Workplace';
// migrate router
import OrganProfile from '../routes/OrganProfile';
// asset page
import AddAssetForm from '../routes/AssetForm/StepForm';
import AddAssetStep2 from '../routes/AssetForm/StepForm/Step2';
import AddAssetStep3 from '../routes/AssetForm/StepForm/Step3';
import AssetList from '../routes/AssetList';
import AssetDetail from '../routes/AssetDetail';

export const userNav = [
  {
    name: 'Dashboard',
    icon: 'dashboard',
    path: 'dashboard',
    children: [
      {
        name: '分析页',
        path: 'analysis',
        component: Analysis,
      }, {
        name: '工作台',
        path: 'workplace',
        component: Workplace,
      },
    ],
  }, {
    name: '资产管理',
    path: 'asset',
    icon: 'bank',
    children: [
      {
        name: '资产列表',
        path: 'all',
        component: AssetList,
      }, {
        name: '新增资产',
        path: 'add',
        component: AddAssetForm,
        children: [
          {
            path: 'confirm',
            component: AddAssetStep2,
          }, {
            path: 'result',
            component: AddAssetStep3,
          },
        ],
      }, {
        path: 'detail/:id',
        component: AssetDetail,
      },
    ],
  }, {
    name: '个人中心',
    path: 'profile',
    icon: 'profile',
    children: [
      {
        name: '我的资料',
        path: 'organ',
        component: OrganProfile,
      },
    ],
  },
];

